<template>
    <div>
        <div  class="branch_list"
                v-for="(item, index) in branchList"
              :key="`${_uid}_${index}`"
              @click="click(item)">
        <div>{{item.bankBranchName}}</div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "comList",
        props:{
            branchList:{
                type:Array,
                default:[],
            }
        },
        methods: {
            click(bankBranchName,code) {
                this.$emit('branchListClick',bankBranchName,code)
            }
        }
    }
</script>

<style scoped>
.branch_list{
    border-bottom: 1px solid #e2e5eb;
    background: white;
    margin-bottom: 2px;
}
</style>